#include <iostream>
using namespace std;

class Amount {
public:
	Amount(int n = 0) :amount(n) {};
	int getAmount() const {
		return amount;
	}
	Amount & operator+=(Amount a) {
		amount += a.amount;
		return *this;
	}

private:
	int amount;
};


//int main() {
//	Amount x(3), y(7);
//	x += y;
//	cout << x.getAmount() << endl;
//	return 0;
//}